export function orderState(stateVal: string | number) {
  let state = "";
  if (stateVal === 0) {
    state = "待付款";
  } else if (stateVal === 1) {
    state = "待发货";
  } else if (stateVal === 2) {
    state = "已发货";
  } else if (stateVal === 3) {
    state = "已完成";
  } else if (stateVal === 4) {
    state = "已关闭";
  } else if (stateVal === 5) {
    state = "无效订单";
  }
  return state;
}

export function orderSource(sourceVal: number) {
  let source = "";
  if (sourceVal === 0) {
    source = "PC订单";
  } else if (sourceVal === 1) {
    source = "app订单";
  }
  return source;
}
